import request from '@/utils/request'

// 查询红利曲线剥离
export function getDivIrCrvStripList(query) {
  return request({
    url: '/marketdata/divIrCurveStrip/queryDivIrCurveRatesListByPage.action',
    method: 'get',
    params: query
  })
}
// 新增红利曲线剥离
export function addDivIrcCurveStrip(data) {
  return request({
    url: '/marketdata/divIrCurveStrip/insertDivIrCurveRates.action',
    method: 'post',
    params: data
  })
}

// 修改红利曲线剥离
export function uptDivIrcCurveStrip(data) {
  return request({
    url: '/marketdata/divIrCurveStrip/updateDivIrCurveRates.action',
    method: 'post',
    params: data
  })
}

// 删除红利曲线剥离
export function delDivIrcCurveStrip(data) {
  return request({
    url: '/marketdata/divIrCurveStrip/deleteDivIrCurveRates.action',
    method: 'put',
    params: data
  })
}

// 查询红利曲线图形数据
export function getDivIrCrvStripChartData(query) {
  return request({
    url: '/marketdata/divIrCurveStrip/queryDivIrCurveRatesByPage.action',
    method: 'get',
    params: query
  })
}

// 获取
export function getByDivCode(data) {
  return request({
    url: '/marketdata/divIrCurveStrip/getDivCurveByCode.action',
    method: 'put',
    params: data
  })
}


// 查询红利曲线下拉
export function getDivCurveList() {
  return request({
    url: '/pricing/comboBox/queryDivyield.action',
    method: 'get',
    params: {}
  })
}
